package com.thoughtworks.conference.model.configmodel;

/**
 * <p>Title:系统错误提示信息类</p>
 * <p>Description:用来封装系统返回的错误信息</p>
 *
 * @author <a href="mailTo:bingxuewulei@outlook.com">wanglei</a>
 * @version 1.0
 * @history: Created by wanglei on  2019/4/24
 */
public class ErrorMessage {
    //错误信息
    private String errorInfo;
    //错误编码
    private int errorLineNum;

    public ErrorMessage(String errorInfo, int errorLineNum) {
        this.errorInfo = errorInfo;
        this.errorLineNum = errorLineNum;
    }

    @Override
    public String toString() {
        return "The line number ：["+errorLineNum+"] data error ："+errorInfo;
    }
}
